package com.ruoyi.invest.controller;

import com.ruoyi.common.core.web.controller.BaseController;
import com.ruoyi.common.core.web.domain.AjaxResult;
import com.ruoyi.invest.domain.TbInvest;
import com.ruoyi.invest.service.InvestService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
/**
 * 用户信息
 * 
 * @author ruoyi
 */
@RestController
@RequestMapping("/user")
public class InvestController extends BaseController
{
    @Autowired
    private InvestService investService;


    @RequestMapping("/list")
    public AjaxResult list(@RequestBody TbInvest invest) {
        return investService.list(invest);
    }

    @RequestMapping("/insert")
    public AjaxResult insert(@RequestBody TbInvest invest) {
        return investService.insert(invest);
    }

    @RequestMapping("/update")
    public AjaxResult update(@RequestBody TbInvest invest) {
        return investService.update(invest);
    }

    @RequestMapping("/selectbyproductid")
    public AjaxResult selectbyproductid(@RequestBody TbInvest invest) {
        return investService.selectbyproductid(invest);
    }

    @RequestMapping("/del")
    public AjaxResult del(@RequestBody TbInvest invest) {
        return investService.del(invest);
    }




}
